package imvu.rbox.event
{
	import flash.sampler.StackFrame;

	public class MsgEvent extends Object
	{
		//	客户端处理的消息（向服务器端发送）
		public static const	C_CREATE_NEW_ROOM:String	= "CreateNewRoom";	//	创建一个新房间
		public static const C_JOIN_ROOM:String			= "JoinRoom";		//	加入游戏房间
		public static const C_READY_GAME:String			= "UserReadyGame";	//	玩家准备完毕
		public static const C_QUIT_ROOM:String			= "UserQuitRoom";	//	离开房间
		public static const C_CLOSE_SEAT:String			= "CloseRoomSeat";	//	关闭房间中的某个坐位
		public static const C_TICK_USER:String			= "TickUser";		//	将用户踢出房间
		public static const C_CLEAN_LINE:String			= "CleanLine";		//	清除一行
		public static const C_CONTINUE_GAME:String		= "ContinueGame";	//	继续游戏
		public static const C_QUIT_GAME:String			= "QuitGame";		//	离开游戏
		public static const C_RUSH_USER_INFO:String		= "RusnUserInfo";	//	刷新用户信息
		public static const C_RUSH_ROOM_LIST:String		= "RushRoomList";	//	刷新房间列表
		public static const C_RUSH_GAMD_LIST:String		= "addmap";			//	添加房间数据
		public static const C_USER_GAME_OVER:String		= "UserGameOver";	//	玩家游戏结束
		
		//	服务器端直接调用的方法（由客户端定义）
		public static const S_CREATE_ROOM_DONE:String	= "CreateRoomDone";	//	房间创建成功
		public static const S_RUSH_ROOM_LIST:String		= "RushRoomList";	//	刷新房间列表
		public static const S_START_GAME:String			= "GameStart";		//	游戏开始
		public static const S_USER_LOGIN_ROOM:String	= "UserLogin";		//	用户进入房间
		public static const S_USER_READY:String			= "UserReady";		//	用户准备完毕
		public static const S_USER_QUIT_ROOM:String		= "UserQuit";		//	用户离开房间
		public static const S_RUSH_ROOM_INFO:String		= "RushRoomInfo";	//	刷新房间信息
		public static const S_RUSH_USER_LIST:String		= "RushUserList";	//	刷新房间内用户列表
		public static const S_RUSH_USER_INFO:String		= "RushUserInfo";	//	刷新用户信息
		public static const S_APPEND_GAME_DATA:String	= "AppendGameData";	//	追加房间内方块列表
		public static const S_RUSN_GAME_INFO:String		= "RushGameInfo";	//	刷新游戏信息
		public static const S_D0_GAME_OVER:String		= "GameOver";		//	游戏结束事件
		public static const S_DO_GAME_CONTINUE:String	= "GameContinue";	//	继续游戏
		public static const S_CHANGE_MASTER:String		= "ChangeRoomMaster";	//	交换房主
		
		public function MsgEvent()
		{
			throw new Error("Can't create this.");
		}
	}
}